<include file="public@header" />
</head>
<body>
<div class="wrap js-check-wrap">
    <ul class="nav nav-tabs">
        <li class="active"><a href="{:url('reason/index')}">所有原因</a></li>
        <li><a href="{:url('reason/add')}">添加原因</a></li>
    </ul>
    <form class="well form-inline margin-top-20"  method="get" action="{:url('reason/index')}">
        原因名称：
        <input type="text" class="form-control" name="name" style="width:100px" value="{:input('request.name/s')}">
        <input type="submit" class="btn btn-primary" value="搜索" />
        <a class="btn btn-danger" href="{:url('reason/index')}">清空</a>
    </form>
        <table class="table table-hover table-bordered">
            <thead>
                <tr>
                <th>ID</th>
                <th>原因名称</th>
                <th width="160">{:lang('ACTIONS')}</th>
                </tr>
            </thead>
           <tbody>
           <foreach name="reason" item="vo">
               <tr>
                   <td>{$key+1}</td>
                   <td>{$vo.name}</td>
                   <td><a class="btn btn-xs btn-success" href="{:url('reason/edit',array('id'=>$vo['id']))}">编辑</a>
                       <a class="btn btn-xs btn-danger js-ajax-delete" href="{:url('reason/delete',array('id'=>$vo['id']))}">删除</a>
                   </td>
               </tr>
           </foreach>
           </tbody>
        </table>
    <div class="pagination">{$page}</div>
</div>
<script src="__STATIC__/js/admin.js"></script>
</body>
</html>